//
// Source resultCode recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.sdhs.system.syncdata.util;

import io.swagger.annotations.*;

import java.io.*;
import java.util.*;

@ApiModel("响应")
public class ResultSchema<T> implements Serializable {
    private static final long serialVersionUID = 1L;
//    @ApiModelProperty("编码：0表示成功，其他值表示失败")
//    private int resultCode = 0;
//    @ApiModelProperty("消息内容")
//    private String msg = "success";
    @ApiModelProperty("随机码")
    private String bimRequestId;
    @ApiModelProperty("用户信息")
    private List account;
    @ApiModelProperty("角色信息")
    private List role;
//    @ApiModelProperty("菜单信息")
//    private List menu;
    @ApiModelProperty("机构信息")
    private List organization;



    public ResultSchema() {
    }

    public ResultSchema<T> ok(String data) {
        this.setBimRequestId(data);
        return this;
    }

    /*public boolean success() {
        return this.resultCode == 0;
    }*/

//    public static <T> Result<T> success(String data) {
//        return (new Result()).ok(data);
//    }

    /*public static <T> ResultSchema<T> badRequest(String msg, Integer resultCode) {
        return (new ResultSchema()).error(resultCode, msg);
    }

    public ResultSchema<T> error() {
        this.resultCode = 500;
        this.msg = MessageUtils.getMessage(this.resultCode);
        return this;
    }

    public ResultSchema<T> error(int resultCode) {
        this.resultCode = resultCode;
        this.msg = MessageUtils.getMessage(this.resultCode);
        return this;
    }

    public ResultSchema<T> error(int resultCode, String msg) {
        this.resultCode = resultCode;
        this.msg = msg;
        return this;
    }

    public ResultSchema<T> error(String msg) {
        this.resultCode = 500;
        this.msg = msg;
        return this;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }*/

    public String getBimRequestId() {
        return bimRequestId;
    }

    public void setBimRequestId(String bimRequestId) {
        this.bimRequestId = bimRequestId;
    }

    public List getAccount() {
        return account;
    }

    public void setAccount(List account) {
        this.account = account;
    }



    public List getOrganization() {
        return organization;
    }

    public void setOrganization(List organization) {
        this.organization = organization;
    }

    public List getRole() {
        return role;
    }

    public void setRole(List role) {
        this.role = role;
    }


}
